<template>
  <!-- 联系我们 -->
  <div class="app-footer">
    <div class="container">
      <ul>
        <li class="title">客户服务</li>
        <li class="action">
          <icon-title title="在线客服" icon="icon-kefu"/>
          <icon-title title="问题反馈" icon="icon-question"/>
        </li>
      </ul>
      <ul>
        <li class="title">关于我们</li>
        <li class="action">
          <icon-title title="公众号" icon="icon-weixin"/>
          <icon-title title="微博" icon="icon-weibo"/>
        </li>
      </ul>
      <ul>
        <li class="title">下载app</li>
        <li class="action">
          <icon-title image="/images/qrcode.jpg"/>
          <div class="label">
            <div>扫描二维码</div>
            <div>立即下载app</div>
          </div>
        </li>
      </ul>
      <ul>
        <li class="title">服务热线</li>
        <li class="action">
          <div class="serve-box">
            <div class="telephone">
              400-0000-000
            </div>
            <div class="info">
              周一至周日8:00-18:00
            </div>
          </div>
        </li>
      </ul>
    </div>
  </div>
  <!-- 其它 -->
  <div class="extra">
    <div class="container">
      <div>
        <i class="iconfont icon-footer01"></i>
        价格亲民
      </div>
      <div>
        <i class="iconfont icon-footer02"></i>
        物流快捷
      </div>
      <div>
        <i class="iconfont icon-footer03"></i>
        品质新鲜
      </div>
    </div>
    <div class="bottom">
      <ul>
        <li><a href="#">关于我们</a></li>
        <li><a href="#">帮助中心</a></li>
        <li><a href="#">售后服务</a></li>
        <li><a href="#">配送与验收</a></li>
        <li><a href="#">商务合作</a></li>
        <li><a href="#">搜索推荐</a></li>
        <li><a href="#">友情链接</a></li>
      </ul>
      <div>CopyRight © 小兔鲜儿</div>
    </div>
  </div>
</template>

<script setup lang="ts">
import IconTitle from '@/components/IconTitle.vue'
</script>

<style scoped lang="less">
.app-footer {
  background-color: #fff;

  .container {
    height: 290px;
    display: flex;
    align-items: center;

    ul {
      height: 190px;
      display: flex;
      flex-direction: column;
      align-items: center;
      flex: 1;

      & ~ ul {
        border-left: 1px solid #f2f2f2;
      }

      .title {
        text-align: center;
        font-size: 18px;
        color: #999;
      }

      .action {
        margin-top: 32px;
        display: flex;

        & > * ~ * {
          margin-left: 30px;
        }

        .label {
          display: flex;
          flex-direction: column;
          align-items: center;
          justify-content: center;
        }

        .serve-box {
          padding-top: 20px;
          display: flex;
          flex-direction: column;
          align-items: center;
          justify-content: center;

          .telephone {
            font-size: 22px;
            color: #666;
          }

          .info {
            font-size: 15px;
            color: #999;
          }
        }
      }
    }
  }
}

.extra {
  background-color: #333333;

  .container {
    display: flex;
    height: 178px;
    border-bottom: 1px solid #434343;
    justify-content: space-around;
    color: white;

    div {
      display: flex;
      align-items: center;
      font-size: 28px;

      i {
        font-size: 50px;
        margin-right: 10px;
      }
    }
  }

  .bottom {
    padding-top: 40px;
    color: #999;
    height: 170px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 auto;

    ul {
      display: flex;

      li {
        padding: 0 10px;

        ~ li {
          border-left: 1px solid #999;
        }

        a {
          color: #999;
        }
      }
    }

    div {
      padding-top: 20px;
    }
  }
}
</style>